package com.eascs.o2o.message.server;

import com.eascs.app.dao.PageResult;
import com.eascs.o2o.common.vo.ModelResult;
import com.eascs.o2o.message.vo.MsgSmsQueryVO;

public interface IMsgSmsService {

	/**
	 * 根据模板发送验证码
	 * @param templateCode
	 * @param phone
	 * @return
	 */
	public ModelResult<Boolean> sendAuthCode(String templateCode, String phone);
	
	/**
	 * @Title: sendSms
	 * @Description: 发送短信
	 * @param templateCode
	 * @param phone
	 * @param smsContent
	 * @return
	 * @return ModelResult<Boolean>
	 * @throws
	 */
	public ModelResult<Boolean> sendSms(String templateCode, byte msgType, String phone, Object[] params);
	
	/**
	 * @Title: useAuthCode
	 * @Description:检验并使用
	 * @param phone
	 * @param authCode
	 * @return
	 * @return ModelResult<Boolean>
	 * @throws
	 */
	public ModelResult<Boolean> useAuthCode(String phone, String authCode);
	
  
	/**
	 * @Title: page
	 * @Description: 分页查询短信列表
	 * @param vo
	 * @return
	 * @return ModelResult<PageResult<Object[]>>
	 * @throws
	 */
	public ModelResult<PageResult<Object[]>> page(MsgSmsQueryVO vo);
}
